package o;

import com.huawei.appgallery.forum.message.bean.ForumMsgSettingItemCardBean;
import com.huawei.appgallery.forum.message.msgsetting.base.request.AbstractGetMsgSettingResponse;
import com.huawei.appgallery.forum.message.node.ForumLauncherMsgSettingItemNode;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import java.util.List;
import o.bvj.j;

public class bwe extends chi {
    private AbstractGetMsgSettingResponse ˋ;

    public bwe(AbstractGetMsgSettingResponse abstractGetMsgSettingResponse) {
        this.ˋ = abstractGetMsgSettingResponse;
    }

    protected void ˊ(cia o_cia, chd o_chd, BaseDetailResponse baseDetailResponse) {
        if (this.ˋ != null) {
            for (int i = 0; i < o_cia.ॱˊ(); i++) {
                chz ˏ = o_cia.ˏ(i);
                List<CardBean> ˏ2 = ˏ.ˏ();
                if ((ˏ.ˋ instanceof ForumLauncherMsgSettingItemNode) && ˏ2 != null && ˏ2.size() > 0) {
                    for (CardBean cardBean : ˏ2) {
                        if (cardBean instanceof ForumMsgSettingItemCardBean) {
                            ˏ((ForumMsgSettingItemCardBean) cardBean);
                        }
                    }
                }
            }
        }
    }

    public void ˏ(ForumMsgSettingItemCardBean forumMsgSettingItemCardBean) {
        int i;
        int ˊ;
        switch (forumMsgSettingItemCardBean.ˊ()) {
            case 1:
                i = j.ᐝˊ;
                ˊ = this.ˋ.ˊ();
                break;
            case 2:
                i = j.ᐧ;
                ˊ = this.ˋ.ˏ();
                break;
            case 3:
                i = j.ـ;
                ˊ = this.ˋ.ॱ();
                break;
            case 4:
                i = j.ᐝˋ;
                ˊ = this.ˋ.ˎ();
                break;
            case 5:
                i = j.ॱʻ;
                ˊ = this.ˋ.ˋ();
                break;
            case 6:
                i = j.ॱͺ;
                ˊ = this.ˋ.ᐝ();
                break;
            case 7:
                i = j.ॱʽ;
                ˊ = this.ˋ.ʽ();
                break;
            default:
                bqx.ˋ("LauncherSettingDataProv", "unknow type, error");
                i = j.ᐝˊ;
                ˊ = this.ˋ.ˊ();
                break;
        }
        forumMsgSettingItemCardBean.ˎ(i);
        forumMsgSettingItemCardBean.ˎ(ˊ == 1);
    }
}
